<?php

/**
 * Description of backofficeRefreshMenuListAction
\* www.teuker.nl - mail@teuker.nl
 * 
 * @author francisc
 */

class backofficeRefreshMenuListAction extends sfAction {

    public function execute($request) {
        if (null == $request->getParameter('restaurant_id'))
            return sfView::NONE;

        if (!is_numeric($request->getParameter('restaurant_id')))
            return sfView::NONE;

        return $this->renderComponent('globals', 'menuListRefresh',
                                        array('restaurant_id' => $request->getParameter('restaurant_id')));
    }
}
